#ifndef LIBRARY_LOAD_H
#define LIBRARY_LOAD_H

#if defined(__linux__)
#include <dlfcn.h>
typedef void *dl_t;
#elif defined(_MSC_VER)
#include <Windows.h>
#define dlclose(handle)				FreeLibrary(handle)
#define dlsym(handle, symbolstr)	GetProcAddress(handle, symbolstr)
#define dlopen(path, flag)			LoadLibraryA(path)
#define RTLD_LAZY NULL
typedef HINSTANCE dl_t;
#endif

#endif